module.exports = function ($scope, $resource, $modalInstance, qrcode, toaster) {

	function timing() {
		if ($('#qrcode')) {
            $('#qrcode').qrcode({ 
                width: 300, 
                height: 300, 
                text: qrcode 
            });
			clearInterval(intervalProcess);
		}
	}
	var intervalProcess = setInterval(function () { timing() }, 100);


};